﻿<Window x:Class="CECB.FillMatrix_Window"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit" 
        Title="FillMatrix_Window"  Background="#AA000000" AllowsTransparency="True"
        WindowStyle="None" WindowState="Maximized" 
          
        Height="768" Width="1020" >
    <Grid Height="760" Width="1020" Margin="0,20,0,0" >

        <Rectangle Margin="5,0,30,56" Stroke="White" RadiusY="19.5" RadiusX="19.5" StrokeThickness="4">
            <Rectangle.Effect>
                <DropShadowEffect Direction="330" BlurRadius="24" ShadowDepth="13" />
            </Rectangle.Effect>
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="Black" Offset="0" />
                    <GradientStop Color="#FFA3A1A1" Offset="0.494" />
                    <GradientStop Color="#FF272121" Offset="0" />
                    <GradientStop Color="#FF272121" Offset="1" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <StackPanel Height="50" VerticalAlignment="Top" Orientation="Horizontal" Background="Transparent" Margin="-15,19,0,0">
           
            <Label Content="Fill The Matrix Using" Margin="100,0,0,0" FontSize="15" Foreground="White" Width="auto" Height="31" />
            <ComboBox  Name="ComboboxSelectMatrix" Width="260" Foreground="Black" Background="White" Height="35" FontSize="20"  SelectionChanged="ComboboxSelectMatrix_SelectionChanged">
                <ComboBoxItem Content="Simple Matrix" />
                <ComboBoxItem Content="Leopold Matrix" />

            </ComboBox>
            <StackPanel Orientation="Horizontal" Height="auto" Margin="10,0,0,0">
                <Label Content="Project" Name="label_projectName" FontSize="15" Foreground="White" Margin="20,0,0,0" Width="auto" Height="34" />
                <toolkit:AutoCompleteBox Name="ProjectAutocompleteTextBox"  Width="260" Margin="12,0,0,0" Height="35"  ValueMemberPath="proj_name"   FilterMode="Contains"  ItemsSource="{Binding}"  TabIndex="1" IsTabStop="True"  SelectionChanged="ProjectTextBox_SelectionChanged" FontSize="18" Background="White" Opacity="1" UseLayoutRounding="False" BorderBrush="#FFF8F8F8" BorderThickness="2" TextChanged="ProjectAutocompleteTextBox_TextChanged">
                    <toolkit:AutoCompleteBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="{Binding Path=proj_reference}"/>
                                <TextBlock Text=" - "/>
                                <TextBlock Text="{Binding Path=proj_name}"/>
                            </StackPanel>
                        </DataTemplate>
                    </toolkit:AutoCompleteBox.ItemTemplate>
                </toolkit:AutoCompleteBox>
            </StackPanel>
             
        </StackPanel>
        <StackPanel Orientation="Horizontal" Margin="0,19,0,0"  >
          
                <TreeView Height="400" HorizontalAlignment="Left" Margin="10,50,0,0" Name="treeViewImpacts" VerticalAlignment="Top" Width="480" SelectedItemChanged="treeView1_SelectedItemChanged" Background="#FFFFE8A6" BorderBrush="White" />
       
            <TreeView Height="400" HorizontalAlignment="Left" Margin="10,50,0,0" Name="treeViewActivities" VerticalAlignment="Top" Width="480" Background="#FFFFE8A6" SelectedItemChanged="treeView2_SelectedItemChanged" BorderBrush="White" />
        
        </StackPanel>
        <StackPanel Margin="10,472, 30,0">
            <GroupBox Height="90" Margin="10,0,20,0"   BorderBrush="White" Background="#FF3B3B3B">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="37*" />
                        <RowDefinition Height="35*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="134*" />
                        <ColumnDefinition Width="878*" />
                    </Grid.ColumnDefinitions>
                    <Label Content="Impact" Width="100" VerticalAlignment="Center" HorizontalAlignment="Left"  FontSize="15" Foreground="White" Margin="16,7,0,0" />
                        <StackPanel Name="stackPanelImpact"    Grid.Column="1" Margin="0,10,22,0">
                            <Label Content="" Name="labelImpact"  FontSize="15" Foreground="White"   HorizontalAlignment="Left" Width="auto" />
                        </StackPanel>
                     
                        <Label Content="Activity" Width="100" FontSize="15" Foreground="White" Grid.Column="0" Grid.Row="1"    />
                        <StackPanel Name="stackPanelActivity" Grid.Column="1" Grid.Row="1" Margin="0,6,22,0">
                            <Label Content="" Name="labelActivity" FontSize="15" Foreground="White"   HorizontalAlignment="Left" Width="auto" />
                        </StackPanel>
                   
                </Grid>
            </GroupBox>
            <GroupBox Name="groupBoxinsertValues" Header="Add values" Foreground="White" Height="129" Width="948" HorizontalAlignment="Left" Margin="10,0,0,0">
                <StackPanel Orientation="Vertical">
                    <StackPanel>
                        <Button Name="buttonConfirm" Content="Confirm Selection" Height="30"   Click="buttonConfirm_Click" Background="#FF009A00" Foreground="White" FontSize="14" FontWeight="Bold" Width="329" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">

                        <StackPanel Margin="100,0,0,0" Orientation="Horizontal">
                            <Label Name="Iv"  Padding="15,10,0,0"  Content=" " Height="40"  FontSize="18" Foreground="Red"  Width="113" FontWeight="Bold" />
                            <Label Name="lblmag"  Content="Magnitude Value"  FontSize="15" Foreground="WhiteSmoke" Margin="0,10,0,0" Background="{x:Null}" Canvas.Left="773" Canvas.Top="7" Width="132"></Label>
                            
                            <Button Name="btnMagminus" Click="btnMagminus_Click" Content="-" Padding="0,-3,0,0" Width="30" Height="30" FontSize="20" FontWeight="ExtraBold" Background="#FFC2CCDB"></Button>
                            <TextBox TextAlignment="Center" Name="textBoxImportance" Width="50" Height="40" Margin="0,0,0,0" FontSize="25" Foreground="#FF0724BE" PreviewTextInput="textBoxImportance_PreviewTextInput"  />
                            <Button Name="btnMagplus" Click="btnMagplus_Click" Padding="0,-3,0,0" Content="+" Width="30" Height="30" FontSize="20" FontWeight="ExtraBold" Background="#FF538EEF"></Button>
                            
                            <Button Name="btnimpminus" Click="btnimpminus_Click" Content="-" Padding="0,-3,0,0" Margin="20,0,0,0"  Width="30" Height="30" FontSize="20" FontWeight="ExtraBold" Background="#FFC2CCDB"></Button>
                            
                            <TextBox TextAlignment="Center" Name="textBoxMagnitude" Width="50" Height="40" Margin="0,0,0,0" FontSize="25" Foreground="#FF0724BE"   KeyDown="textBoxMagnitude_KeyDown" PreviewKeyDown="textBoxMagnitude_PreviewKeyDown" PreviewTextInput="textBoxMagnitude_PreviewTextInput"   />
                            <Button Name="btnImpplus" Click="btnImpplus_Click" Margin="0,0,0,0" Padding="0,-3,0,0" Content="+" Width="30" Height="30" FontSize="20" FontWeight="ExtraBold" Background="#FF538EEF"></Button>                  
                            
                            <Label Name="lblimp" Content="Importance Value" FontSize="15" Foreground="WhiteSmoke" Margin="10,10,0,0" Background="{x:Null}" Canvas.Left="30" Canvas.Top="7" Width="138"></Label>

                            <Label Name="Mv" Margin="10,0,0,0" Padding="5,10,0,0"   Content="  " FontSize="18" FontWeight="Bold" Foreground="Red" Height="36"  Width="96" />

                        </StackPanel>
                    </StackPanel>
                    <StackPanel>
                        <Button Name="buttonAddMatrix" Content="Add to Matrix" Height="30" Margin="100, 0,100,0" Click="buttonAddMatrix_Click" Background="#FFCE0000" Foreground="White" FontWeight="Bold" FontSize="14" Width="332" />
                    </StackPanel>
                </StackPanel>
               
            </GroupBox>
            
            
            
        </StackPanel>
        <Grid HorizontalAlignment="Center" VerticalAlignment="Top" Margin="800,9,-32,0">
            <Image Height="32" Margin="2" Source="/CECB;component/images/minimize.png"  Width="32" MouseLeftButtonDown="Image_MouseLeftButtonDown_1" />
        </Grid>
        <Grid HorizontalAlignment="Center" VerticalAlignment="Top" Margin="880,9,-32,0">
            <Image Height="32" Margin="2" Source="/CECB;component/images/closeblack.png"  Width="32" MouseLeftButtonDown="Image_MouseLeftButtonDown" />
        </Grid>
    </Grid>
</Window>
